from ast import List


class Solution:
    def getLeastNumbers(self, arr: List[int], k: int) -> List[int]:
        if len(arr)<k:
            return []     
        return sorted(arr)[:k]